package edu.sctu.practice.class02.mengyao.assign02;

/**
 * Created by Administrator on 2015/10/8.
 */
public class RationalDemo {
    public static void main(String[] args) {
        Rational one=new Rational(3,2);
        Rational two=new Rational(8,4);
        System.out.println(one.add());
        System.out.println(one.reduce());
        System.out.println(one.multiply());
        System.out.println(one.except());

        System.out.println(two.add());
        System.out.println(two.reduce());
        System.out.println(two.multiply());
        System.out.println(two.except());

    }
}
